package com.l.pay.wxpay;
import java.util.Random;

public class WxPayConfig {
	public static String service = "https://api.mch.weixin.qq.com/pay/unifiedorder?";//接口链接
	public static String appid = "wx1443e3e509c7e378"; //微信分配的公众账号ID（企业号corpid即为此appId）
	public static String mch_id = "1495384512"; //微信支付分配的商户号
	public static String key = "SHENYANGweiketuo1234567898888888";
	public static String device_info = "WEB"; //终端设备号(门店号或收银设备ID)，注意：PC网页或公众号内支付请传"WEB"
	public static String nonce_str = createMch_id();//随机字符串
	public static String notify_url ="http://localhost:8089/zongjie/saomawx?"; //通知地址
	/**
	 * 32位随机字符串生成方法
	 * @return 随机字符串
	 */
	public static String createMch_id(){
		Random random = new Random();
		int num = random.nextInt(10000);
		MD5 md5 = new MD5();
		String str = md5.ToMD5(""+num);
		return str;
	}
}
